package com.pine.dcts.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @Description: 文件上传属性配置
 * @Author: xiaoyuan
 * @Date: 2019/9/18 14:08
 */
@ConfigurationProperties(prefix = "pine.upload" )
@Getter
@Setter
public class FileUploadProperties {

    /**
     * 文件最大大小
     */
    private Long maxSize;

    /**
     * 上传文件的后缀
     */
    private String[] includeSuffix;

    /**
     * 上传文件排除的后缀
     */
    private String[] excludeSuffix;

    /**
     * 可用文件头
     */
    private String[] contentType;

    /**
     * 文件上传路径
     */
    private String uploadPath;

}
